#!/bin/sh

echo "*** Process for NGINX service ***"

if [ ! -f /var/run/nginx.pid ] ; then
	if [ -f /var/lock/subsys/nginx ] ; then
		'rm' -f /var/lock/subsys/nginx
	fi
fi

echo "  - Process: restart"
/etc/rc.d/init.d/nginx stop
pkill -9 nginx
/etc/rc.d/init.d/nginx start
